<template>
  <div class="play_record">
    <Header title="播放记录" go-back="true"></Header>
    <back-top></back-top>
    <div class="record_box">
      <ul>
        <li v-for="(item, index) in recordList" :key="index">
          <div class="record_div">
            {{index+1}}
          </div>
          <div class="record_li">
           <p>{{item.song.name}}</p>
           <p v-for="(name, index2) in item.song.ar" :key="index2">{{name.name}}</p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import Header from '../../Header/Header'
import {getRecord} from '../../../api/node'
import BackTop from '../../backtop/src/main'

export default {
  name: 'Child4Page4',
  data () {
    return {
      recordList: ''
    }
  },
  created () {
    getRecord().then(res => {
      // console.log(res)
      if (res.code === 200) {
        this.recordList = res.weekData
        console.log(this.recordList)
      }
    })
  },
  methods: {
  },
  components: {
    Header,
    BackTop
  }
}
</script>

<style lang="scss" scoped>
.play_record{
  width: 100%;
  padding-top: 50px;
  .record_box{
    width: 100%;
    ul{
      width: 100%;
      li{
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid #f2f2f2;
        display: inline-flex;
        align-items: center;
        .record_div{
          font-size: 13px;
          padding: 0 10px;
        }
        .record_li{
          width: 100%;
          padding-left: 10px;
          p:first-child{
            font-size: 14px;
          }
          p:last-child{
            color: #28a1fb;
          }
        }
      }
    }
  }
}
</style>
